<?php
namespace Home\Controller;
use Think\Controller;
class CommntController extends Controller {
	public function  _initialize()
	{
		if(!session('user_id')){
			 $url = U('Login/index');
			 echo "<script>window.top.location.href='{$url}';</script>";
		}             
		
	}
	public  function pp($data)
	{
		echo '<hr><pre>'.print_r($data,true).'</pre></hr>';
	}
}